package com.yxt.mcc.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2019-09-11 14:59
 * @since 1.0.0
 **/
@RestController
@RequestMapping(value = "mcc",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MccController {

    @NacosValue("${you.name:wunai}")
    private String youName;

    @GetMapping("index")
    public Object index(){

        return "mcc "+ youName;
    }

}
